<?php
/**
 * [PHPFOX_HEADER]
 */

defined('PHPFOX') or exit('NO DICE!');

/**
 * 
 * 
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author  		Raymond Benc
 * @package 		Phpfox_Component
 * @version 		$Id: add.class.php 4921 2012-10-22 13:47:30Z Miguel_Espinoza $
 */
class Marketplace_Component_Controller_Store_ChangePhoto extends Phpfox_Component
{
	/**
	 * Class process method wnich is used to execute this component.
	 */
	public function process()
	{
		Phpfox::isUser(true);
		if($iId = $this->request()->get("id")){
                    $aVals= $this->request()->get("val");
                    Phpfox::getService("marketplace.store.process")->updateTheme($aVals,$iId);
                }
                $aListing = Phpfox::getService("marketplace")->getListing($this->request()->get("listing_id"));
                $this->url()->permalink('marketplace', $aListing["listing_id"], $aListing["title"],true,"Store photo has been changed.");
	}
	
}

?>